package com.kotlin.zds.arouter

import android.app.Activity
import android.content.Context
import com.alibaba.android.arouter.launcher.ARouter

/**
 * Author: zds
 * Date: 2022/11/5 13:03
 * Description: arouter 路由配置
 * Version: v1.0
 */
class Routes {
    companion object {
        const val PATH_RVGV = "/main/rvgv"
        const val PATH_WEB = "/main/webview"
        const val PATH_GAODE = "/map/gaodemap"
        const val PATH_BAIDU = "/map/baidu"
        const val PATH_GAODE2 = "/map/gaode2"
        const val PATH_SCAN = "/scan/code"
        const val PATH_PHOTO = "/photo/select"



        const val DEGRADE_SERVICE = "/degrade/service"
        const val INTERCEPTOR = "interceptor"

        const val EXTRA_LOGIN = 0x01
        const val EXTRA_AUTHENTICATION = EXTRA_LOGIN shl 1
        const val EXTRA_VIP = EXTRA_AUTHENTICATION shl 1

        fun navicat(url:String){
            ARouter.getInstance().build(url).navigation()
        }

        fun navicat(url:String,webUrl:String){
            ARouter.getInstance().build(url).withString("url",webUrl).navigation()
        }
    }
}